<?php
   require_once '../connect.php';
   $title = $_POST['title'];
   $price = $_POST['price'];
//    echo $title;
//    echo $price;
//    $query = "INSERT INTO library(title,price) VALUES('$title',$price)";
   $query = "INSERT INTO library(title,price) VALUES ('$title', $price)";
   if(mysqli_query($con,$query)){
   	echo "<script>alert('add success!');</script>";
   	echo "<script>window.location.href='manage.php';</script>";
   }
       